.class public Lcom/example/m6wmr/MainActivity$MyLocationListener;
.super Ljava/lang/Object;
.source "MainActivity.java"

# interfaces
.implements Lcom/baidu/location/BDLocationListener;


# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
    value = Lcom/example/m6wmr/MainActivity;
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x1
    name = "MyLocationListener"
.end annotation


# instance fields
.field final synthetic this$0:Lcom/example/m6wmr/MainActivity;


# direct methods
.method public constructor <init>(Lcom/example/m6wmr/MainActivity;)V
    .locals 0

    .prologue
    .line 1135
    iput-object p1, p0, Lcom/example/m6wmr/MainActivity$MyLocationListener;->this$0:Lcom/example/m6wmr/MainActivity;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public onReceiveLocation(Lcom/baidu/location/BDLocation;)V
    .locals 6
    .param p1, "location"    # Lcom/baidu/location/BDLocation;

    .prologue
    .line 1140
    invoke-virtual {p1}, Lcom/baidu/location/BDLocation;->getLocType()I

    move-result v3

    const/16 v4, 0xa1

    if-eq v3, v4, :cond_0

    invoke-virtual {p1}, Lcom/baidu/location/BDLocation;->getLocType()I

    move-result v3

    const/16 v4, 0x3d

    if-eq v3, v4, :cond_0

    .line 1141
    invoke-virtual {p1}, Lcom/baidu/location/BDLocation;->getLocType()I

    move-result v3

    const/16 v4, 0x41

    if-ne v3, v4, :cond_1

    .line 1142
    :cond_0
    iget-object v3, p0, Lcom/example/m6wmr/MainActivity$MyLocationListener;->this$0:Lcom/example/m6wmr/MainActivity;

    iget-object v3, v3, Lcom/example/m6wmr/MainActivity;->m:Lmyapp/MyApp;

    invoke-virtual {p1}, Lcom/baidu/location/BDLocation;->getLatitude()D

    move-result-wide v4

    invoke-static {v4, v5}, Ljava/lang/String;->valueOf(D)Ljava/lang/String;

    move-result-object v4

    invoke-virtual {v3, v4}, Lmyapp/MyApp;->setLat(Ljava/lang/String;)V

    .line 1143
    iget-object v3, p0, Lcom/example/m6wmr/MainActivity$MyLocationListener;->this$0:Lcom/example/m6wmr/MainActivity;

    iget-object v3, v3, Lcom/example/m6wmr/MainActivity;->m:Lmyapp/MyApp;

    invoke-virtual {p1}, Lcom/baidu/location/BDLocation;->getLongitude()D

    move-result-wide v4

    invoke-static {v4, v5}, Ljava/lang/String;->valueOf(D)Ljava/lang/String;

    move-result-object v4

    invoke-virtual {v3, v4}, Lmyapp/MyApp;->setLng(Ljava/lang/String;)V

    .line 1144
    iget-object v3, p0, Lcom/example/m6wmr/MainActivity$MyLocationListener;->this$0:Lcom/example/m6wmr/MainActivity;

    iget-object v3, v3, Lcom/example/m6wmr/MainActivity;->m:Lmyapp/MyApp;

    invoke-virtual {p1}, Lcom/baidu/location/BDLocation;->getCity()Ljava/lang/String;

    move-result-object v4

    invoke-static {v4}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v4

    invoke-virtual {v3, v4}, Lmyapp/MyApp;->setCity(Ljava/lang/String;)V

    .line 1145
    new-instance v3, Ljava/lang/StringBuilder;

    invoke-virtual {p1}, Lcom/baidu/location/BDLocation;->getDistrict()Ljava/lang/String;

    move-result-object v4

    invoke-static {v4}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v4

    invoke-direct {v3, v4}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    invoke-virtual {p1}, Lcom/baidu/location/BDLocation;->getStreet()Ljava/lang/String;

    move-result-object v4

    invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v3

    invoke-virtual {p1}, Lcom/baidu/location/BDLocation;->getStreetNumber()Ljava/lang/String;

    move-result-object v4

    invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v3

    invoke-virtual {v3}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    .line 1149
    .local v0, "locationString":Ljava/lang/String;
    iget-object v3, p0, Lcom/example/m6wmr/MainActivity$MyLocationListener;->this$0:Lcom/example/m6wmr/MainActivity;

    iget-object v3, v3, Lcom/example/m6wmr/MainActivity;->m:Lmyapp/MyApp;

    invoke-virtual {v3, v0}, Lmyapp/MyApp;->setMapname(Ljava/lang/String;)V

    .line 1150
    iget-object v3, p0, Lcom/example/m6wmr/MainActivity$MyLocationListener;->this$0:Lcom/example/m6wmr/MainActivity;

    iget-object v3, v3, Lcom/example/m6wmr/MainActivity;->m:Lmyapp/MyApp;

    const/4 v4, 0x1

    invoke-virtual {v3, v4}, Lmyapp/MyApp;->setIsmap(Z)V

    .line 1152
    iget-object v3, p0, Lcom/example/m6wmr/MainActivity$MyLocationListener;->this$0:Lcom/example/m6wmr/MainActivity;

    invoke-virtual {p1}, Lcom/baidu/location/BDLocation;->getDistrict()Ljava/lang/String;

    move-result-object v4

    invoke-static {v3, v4}, Lcom/example/m6wmr/MainActivity;->access$0(Lcom/example/m6wmr/MainActivity;Ljava/lang/String;)V

    .line 1153
    const-string v3, "Marinactivity"

    const-string v4, "Location:success"

    invoke-static {v3, v4}, Lmyapp/Mylog;->d(Ljava/lang/String;Ljava/lang/String;)V

    .line 1155
    new-instance v1, Landroid/os/Message;

    invoke-direct {v1}, Landroid/os/Message;-><init>()V

    .line 1156
    .local v1, "message":Landroid/os/Message;
    const/16 v3, 0x58

    iput v3, v1, Landroid/os/Message;->arg1:I

    .line 1157
    sget-object v3, Lcom/example/m6wmr/MainActivity;->h:Landroid/os/Handler;

    invoke-virtual {v3, v1}, Landroid/os/Handler;->sendMessage(Landroid/os/Message;)Z

    .line 1167
    .end local v0    # "locationString":Ljava/lang/String;
    .end local v1    # "message":Landroid/os/Message;
    :goto_0
    return-void

    .line 1161
    :cond_1
    iget-object v3, p0, Lcom/example/m6wmr/MainActivity$MyLocationListener;->this$0:Lcom/example/m6wmr/MainActivity;

    iget-object v3, v3, Lcom/example/m6wmr/MainActivity;->m:Lmyapp/MyApp;

    const/4 v4, 0x0

    invoke-virtual {v3, v4}, Lmyapp/MyApp;->setIsmap(Z)V

    .line 1162
    const-string v3, "Marinactivity"

    const-string v4, "Location:flase"

    invoke-static {v3, v4}, Lmyapp/Mylog;->d(Ljava/lang/String;Ljava/lang/String;)V

    .line 1163
    new-instance v2, Landroid/os/Message;

    invoke-direct {v2}, Landroid/os/Message;-><init>()V

    .line 1164
    .local v2, "msg":Landroid/os/Message;
    const/16 v3, 0x6f

    iput v3, v2, Landroid/os/Message;->arg1:I

    .line 1165
    sget-object v3, Lcom/example/m6wmr/MainActivity;->h:Landroid/os/Handler;

    invoke-virtual {v3, v2}, Landroid/os/Handler;->sendMessage(Landroid/os/Message;)Z

    goto :goto_0
.end method
